package com.jpa.entity;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Useradmin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "useradmin", catalog = "cixi")

public class Useradmin implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String password;
	private Integer power;
	private String phone;
	private String contact;

	// Constructors

	/** default constructor */
	public Useradmin() {
	}

	/** full constructor */
	public Useradmin(String name, String password, Integer power, String phone, String contact) {
		this.name = name;
		this.password = password;
		this.power = power;
		this.phone = phone;
		this.contact = contact;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "password")

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "power")

	public Integer getPower() {
		return this.power;
	}

	public void setPower(Integer power) {
		this.power = power;
	}

	@Column(name = "phone")

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "contact")

	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

}